package com.miao.im.repository.dao;

import com.miao.im.domain.UserDo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Optional;

/**
 * @Auther: miaoguoxin
 * @Date: 2021/4/11 21:01
 * @Description:
 */
public interface IUserDao {

    int updateById(UserDo userDo);

    int insert(UserDo userDo);

    Optional<UserDo> getByUsername(@Param("username") String username);

    Optional<UserDo> getById(@Param("id") Long id);

    List<UserDo> getInUserIds(List<Long> userIds);

}
